package com.football.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 李越
 * @since 2023-02-17
 */

@ApiModel(value = "联赛表", description = "")
@TableName("league")
@Data
public class League implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("联赛id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("联赛名称")
    private String leagueName;

    @ApiModelProperty("联赛标志")
    private String leagueImg;

    @ApiModelProperty("联赛简介")
    private String leagueProfile;

    @ApiModelProperty("联赛总轮数")
    private Integer leagueRounds;

    @ApiModelProperty("联赛赛季")
    private String leagueSeason;

    //参加该联赛的球队列表
    @TableField(exist = false)//表示这个字段不存在于这个数据库
    private List<Team> teams;

}
